# Contributor: Jesse Laprade <jesselaprade@gmail.com>
# Contributor: Will Sinatra <wpsinatra@gmail.com>
# Maintainer: Will Sinatra <wpsinatra@gmail.com>
pkgname=fa
pkgver=0.5.10
pkgrel=0
pkgdesc="A Commandline Agenda written in Fennel"
url="https://git.m455.casa/fa"
# s390x and riscv64 blocked by lua -> fennel
arch="all !s390x !riscv64"
license="AGPL-3.0-only"
makedepends="fennel5.3 lua5.3-dev"
depends="lua5.3"
source="fa-v$pkgver.tar.gz::https://git.m455.casa/fa/snapshot/fa-$pkgver.tar.gz
	fix-fennel-version.patch"
options="!check" #No checks

build() {
	make compile-bin STATIC_LUA_LIB="/usr/lib/liblua-5.3.so.0.0.0"
}

package() {
	make install-bin DESTDIR="$pkgdir"/usr/bin
}

sha512sums="
d2a8a8aadc73614a7c1069ad11bc9207fdef748243642a40e4d51c99b9484b70bf77b6acfd875cbd56acc8d2c421bd1f89acc94d8c1300db6d824de24c26003c  fa-v0.5.10.tar.gz
5708544b5323ac8e893d138a1ef1d95a61297899ce0fd36dff653c85fb47f765a1c352260b917d7d13a2b48472dd8c33f597d4c668a6e65e78730e61a937008b  fix-fennel-version.patch
"
